Skip to content

[OGUI-1926] Derive further UI state from models - #3644

Merged
isaachilly merged 4 commits into
devfrom
improv/ILG/OGUI-1926/Clean-up-logic-for-query-buttons
Oct 15, 2026
Merged

isaachilly merged 4 commits into
devfrom
improv/ILG/OGUI-1926/Clean-up-logic-for-query-buttons

Conversation

@isaachilly

@isaachilly isaachilly commented Sep 29, 2026 •

Copy link
Copy Markdown
Collaborator

I have JIRA issue created

  • branch and/or PR name(s) includes JIRA ID
  • issue has "Fix version" assigned
  • issue "Status" is set to "In review"
  • PR labels are selected
  • FLP integration tests were ran successful

Ticket:

Move model logic from view back into a model after noticing a lot in commandLogs.

Code:

  • Button style/icon and tab title now are derived from a constant using activeMode.
  • New Log helpers remove logic from the commandLogs view
  • query liveStart etc now hide the download dropdown and set auto-scroll themselves. Logic that used to be in the view.
  • In tests frameworkInfo mocks now have to include infoLogger-gui as otherwise the tab title building will crash.

Reviewer:

@isaachilly isaachilly self-assigned this Sep 29, 2026
@isaachilly
isaachilly added this pull request to stack #3645 September 29, 2026 12:35
@isaachilly
isaachilly force-pushed the improv/ILG/OGUI-1926/Clean-up-logic-for-query-buttons branch 2 times, most recently from af5afb2 to aaad543 Compare September 29, 2026 12:55
@isaachilly isaachilly changed the title [OGUI-1926] Derive UI state from models [OGUI-1926] Derive further UI state from models to help ease implementing Sep 29, 2026
@isaachilly isaachilly changed the title [OGUI-1926] Derive further UI state from models to help ease implementing [OGUI-1926] Derive further UI state from models Sep 29, 2026
@isaachilly
isaachilly force-pushed the improv/ILG/OGUI-1926/Clean-up-logic-for-query-buttons branch from 0b54150 to f62dafb Compare September 30, 2026 15:00
Button style, live icon, browser tab title and auto-scroll were set inside the click handler via module-level state, so any mode change not triggered by a click left the UI stale.

Derive them from log.activeMode in the model/view instead.
@isaachilly
isaachilly force-pushed the improv/ILG/OGUI-1926/Clean-up-logic-for-query-buttons branch from a01f7e4 to 353a963 Compare October 13, 2026 13:23
@isaachilly
isaachilly marked this pull request as ready for review October 13, 2026 13:25
@isaachilly
isaachilly requested a review from graduta as a code owner October 13, 2026 13:25
graduta
graduta previously approved these changes Oct 14, 2026
Comment thread InfoLogger/public/log/commandLogs.js Outdated
@isaachilly
isaachilly merged commit 739f33a into dev Oct 15, 2026
9 checks passed
@isaachilly
isaachilly deleted the improv/ILG/OGUI-1926/Clean-up-logic-for-query-buttons branch October 15, 2026 07:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants